<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>标签管理</title>

    <div th:include="commen :: #common_link"></div>

</head>
<body>
<div th:include="admin/admin_commen :: #common_nav"></div>

<!-- Page Header -->
<header class="masthead" style="background-image: url('/images/flower.jpg')">
    <div class="overlay"></div>
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-md-10 mx-auto">
                <div class="page-heading">
                    <h1>标签管理</h1>
                    <span class="subheading">添加/修改/删除 标签</span>
                </div>
            </div>
        </div>
    </div>
</header>

<div class="col-lg-8 col-md-10 mx-auto">
    <table class="table">
        <thead>
        <tr>
            <th>标签编号</th>
            <th>标签名称</th>
            <th>操作1</th>
            <th>操作2</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="tag:${tagList}">
            <td>[[${tag.getNid()}]]</td>
            <td>[[${tag.getName()}]]</td>
            <td><a th:href="@{fixTag(tagID=${tag.getNid()})}" class="btn btn-warning">编辑</a></td>
            <td><a th:href="@{deleteTag(tagID=${tag.getNid()})}" class="btn btn-danger">删除</a></td>
        </tr>
        </tbody>
    </table>
    <div class="clearfix">
        <a class="btn btn-info float-right" href="addTag">添加新标签&rarr;</a>
    </div>
</div>

<div th:include="commen :: #common_footer"></div>
</body>
</html>

